﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoreLib.MySQL.Mapping
{
    /// <summary>
    /// Attribute used to define a new table linked to the target
    /// class
    /// </summary>
    public class DbTableAttribute : Attribute
   {
        //TODO: Support more table engines, current default one is InnoDB
        public string TableName;
        /// <summary>
        /// Defines the initial value for the column with the AutoIncrement attribute
        /// </summary>
        public int AutoIncrementerStart = int.MaxValue;

        /// <summary>
        /// Creates a new instance of the DbTable attribute
        /// </summary>
        /// <param name="tableName">name of the database table</param>
        public DbTableAttribute(string tableName)
        {
            this.TableName = tableName;
        }
    }
}
